package community.hospital.convert;

import community.hospital.entity.Doctor;
import community.hospital.entity.request.DoctorRequest;
import community.hospital.entity.response.DoctorResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author yindingjie
 */
@Mapper
public interface DoctorConvert {
    DoctorConvert INSTANCE = Mappers.getMapper(DoctorConvert.class);

    Doctor convertToDoctor(DoctorRequest request);

    DoctorResponse convertToDoctorResponse(Doctor doctor);
}
